package tjut.Service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import tjut.Bean.UseBean;
import tjut.Dao.IUseInfoDao;
@Service("usService")
public class UseInfoServiceimpl implements IUseInfoService{
    //组合dao层对象，进行依赖注入
	@Resource
	private IUseInfoDao useDao;
	/**
	 * 使用id获取用户信息
	 */
	@Override
	@Transactional(propagation=Propagation.REQUIRED)
	public UseBean selectUseInfo(Integer useid) {
		return useDao.selectUseInfo(useid);
	}

	
	
	@Override
	public List<UseBean> selectAllUseInfo() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int saveUseInfo(UseBean useB) {
		// TODO Auto-generated method stub
		return 0;
	}

}
